<?php
class cls_data_base
{
	var $db;
	var $name;
	static function get_instance($class)
	{
		global $db;
		$cls = "cls_data_{$class}";
		$instance = new $cls();
		$instance->name = $class;
		$instance->db = $db;
		return $instance;
	}
}